div.Gallery .error {
	color: red;
}

a.thickbox img.slideshow, a.colorbox img.slideshow {
    border: 1px #CCCCCC solid;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    padding: 2px;
}

a.thickbox:hover img.slideshow, a.colorbox:hover img.slideshow {
    border: 1px #515151 solid;
}

/* Sortable */

ul.connectedSortable {
	float: left;
	width: 100%;
}

span.gallery_slides_convert_list a { 
	background: url('../images/listgrid.png') left top;
	text-align: left;
	text-indent: -999px;
	display: block;
	width: 20px;
	height: 20px;
	float: left;
	margin: 0 5px 0 0;
}

span.gallery_slides_convert_list a:hover,
.gallery_slides_list span.gallery_slides_convert_list a { 
	background:url('../images/listgrid.png') 40px top; 
	text-align: left;
	text-indent: -999px;
	display: block;
	width: 20px;
	height: 20px;
	float: left;
	margin: 0 5px 0 0;
}

span.gallery_slides_convert_grid a { 
	background:url('../images/listgrid.png') 60px top; 
	text-align: left;
	text-indent: -999px;
	display: block;
	width: 20px;
	height: 20px;
	float: left;
	margin: 0 5px 0 0;
}

span.gallery_slides_convert_grid a:hover,
.gallery_slides_grid span.gallery_slides_convert_grid a { 
	background:url('../images/listgrid.png') right top; 
	text-align: left;
	text-indent: -999px;
	display: block;
	width: 20px;
	height: 20px;
	float: left;
	margin: 0 5px 0 0;
}

.sortable-elements {
	display:inline-block;
}

.sortable-form-table-element, .sortable-form-table-headings, .ui-sortable li.gallerylineitem {
	float:left;
	margin-bottom:12px;
	width:100%;
	padding:8px 0;
}

.ui-sortable li.gallerylineitem {
	float:left;
	width:30%;
	min-width:30%;
	clear:both;
	white-space: nowrap;
	overflow: hidden;
    position: relative;
}

.relatedslides .ui-sortable li.gallerylineitem {
	width: 80%;
}

.ui-sortable li.ui-sortable-helper {
	width: 30%;
}

.ui-sortable li.gallerylineitem span.link {
    right: 10px;
    position: absolute;
}

.ui-sortable li.gallerylineitem span.link a {
    font-size: 90%;
}

.ui-sortable li.gallerylineitem span.link a:hover {
    text-decoration: none;
}

.sortable-form-table-element, .ui-sortable li.gallerylineitem {
	cursor: url(https://mail.google.com/mail/images/2/openhand.cur), default !important;
	background-color: #F1F1F1;
	background-image: -ms-linear-gradient(top,#F9F9F9,#ECECEC);
	background-image: -moz-linear-gradient(top,#F9F9F9,#ECECEC);
	background-image: -o-linear-gradient(top,#F9F9F9,#ECECEC);
	background-image: -webkit-gradient(linear,left top,left bottom,from(#F9F9F9),to(#ECECEC));
	background-image: -webkit-linear-gradient(top,#F9F9F9,#ECECEC);
	background-image: linear-gradient(top,#F9F9F9,#ECECEC);
	-moz-border-radius:3px;
	-webkit-border-radius:3px;
	border-radius:3px;
	border:1px solid #DFDFDF;
}

#slidelist .sortable-form-table-element table, #slidelist .sortable-form-table-headings table, #slidelist.ui-sortable {
	/*float:left;*/
	width:100%;
	border-spacing:0;
}

.gallery_slides_grid #slidelist li.gallerylineitem {
	width:90px !important;
	min-width:90px !important;
	height:112px;
	display:block;
	float:left;
	clear:none !important;
	margin-right:10px;
	white-space:normal
}

.gallery_slides_grid #slidelist li.gallerylineitem .gallery_slide_image {
	display:block !important;
	border:1px solid #DDD;
	float:left;
	width:89px;
	height:89px;
	margin-bottom:5px;
}

.gallery_slides_grid .gallery_slide_title {
	float:left;
	height:20px;
	line-height:20px;
	display:block;
	width:90px;
	overflow:hidden;
}

.gallery_slides_grid .wpml-placeholder, .gallery_slides_grid .gallery-placeholder { 
	float:left; 
	width:88px !important;
	min-width:88px !important;
	height:135px;
	border:1px dashed #c9c9c9;
	background:#f9f9f9;
	-moz-border-radius:3px;
	-webkit-border-radius:3px;
	border-radius:3px;
	margin-bottom:10px;
	margin-right:10px;
	clear:none !important;
}

.sortable-form-table-element table td, .sortable-form-table-headings table td{
	padding:0 8px;
	width:43%;
	color:#333;
	font-weight:bold;
	text-shadow:1px 1px 0 #FFF;
}

.ui-sortable li.gallerylineitem {
	color:#333;
	font-weight:bold;
	text-shadow:1px 1px 0 #FFF;
	padding:12px;
}

.sortable-form-table-element table td input[type=text] {
	font-weight:normal;
	/*width:40%;*/
	padding:5px;
}

.sortable-form-table-element table td.gallery-checkbox-required, .sortable-form-table-element table td.gallery-checkbox-show,
.sortable-form-table-headings table td.gallery-checkbox-required, .sortable-form-table-headings table td.gallery-checkbox-show {
	width:5%;
	text-align:center;
}

.wpml-placeholder, .gallery-placeholder { 
	float:left; 
	width:100%;
	height:43px;
	border:1px dashed #c9c9c9;
	background:#f9f9f9;
	-moz-border-radius:3px;
	-webkit-border-radius:3px;
	border-radius:3px;
	margin-bottom:10px;
}

#slidelist .gallery-placeholder {
	float:left;
	clear:both;
	width:30%;
	padding:0 12px;
}

.relatedslides li.gallery-placeholder {
	width: 80% !important;
}

.ui-sortable-helper, .ui-sortable li.ui-sortable-helper {
	cursor: url(https://mail.google.com/mail/images/2/closedhand.cur), default !important;
	cursor: -moz-grabbing;
	cursor: -webkit-grabbing;
}